﻿using System;

namespace HigLabo.Net.WindowsLive
{
    /// <summary>
    /// 
    /// </summary>
    public enum ActFLG
    {
        /// <summary>
        /// 
        /// </summary>
        GetDownloadContent,
        /// <summary>
        /// 
        /// </summary>
        GetDownloadLink
    }
    /// <summary>
    /// 
    /// </summary>
    public class GetFileCommand : WindowsLiveCommand
    {
        /// <summary>
        /// 
        /// </summary>
        public String FileID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="fileID"></param>
        public GetFileCommand(String fileID)
            : base(fileID)
        {
            this.FileID = fileID;
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="fileID"></param>
        /// <param name="actflg"></param>
        public GetFileCommand(String fileID, ActFLG actflg)
            : this(fileID)
        {
            this.GraphApiPath += "/content";
            if (actflg == ActFLG.GetDownloadLink)
                this.UrlParameter = "&suppress_redirects=true";
        }
    }
}
